package com.gitee.mazhenggg.demo.auth.rpc;

import com.gitee.mazhenggg.demo.auth.entity.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "demo-base")
public interface UserClient {

    @GetMapping("/user/info/{username}")
    SysUser info(@PathVariable("username") String username);
}
